package com.aiobc.business.dataInfo.domain;

import java.util.Date;

import com.aiobc.common.core.annotation.Excel;
import com.aiobc.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 数据模型对象 data_table
 * 
 * @author xc
 * @date 2021-10-22
 */
public class DataTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    @Excel(name = "数据ID")
    private String dataId;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 列编码 */
    @Excel(name = "列编码")
    private String columnCode;

    /** 列名称 */
    @Excel(name = "列名称")
    private String columnName;

    /** 是否可见 */
    @Excel(name = "是否可见")
    private String isVisible;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setDataId(String dataId) 
    {
        this.dataId = dataId;
    }

    public String getDataId() 
    {
        return dataId;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setColumnCode(String columnCode) 
    {
        this.columnCode = columnCode;
    }

    public String getColumnCode() 
    {
        return columnCode;
    }
    public void setColumnName(String columnName) 
    {
        this.columnName = columnName;
    }

    public String getColumnName() 
    {
        return columnName;
    }
    public void setIsVisible(String isVisible) 
    {
        this.isVisible = isVisible;
    }

    public String getIsVisible() 
    {
        return isVisible;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("tableName", getTableName())
            .append("columnCode", getColumnCode())
            .append("columnName", getColumnName())
            .append("isVisible", getIsVisible())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
